<?php

require_once(sfConfig::get('sf_lib_dir').'/filter/base/BaseFormFilterPropel.class.php');

/**
 * Photoservice filter form base class.
 *
 * @package    alika
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormFilterGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BasePhotoserviceFormFilter extends BaseFormFilterPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'name'        => new sfWidgetFormFilterInput(),
      'file_path1'  => new sfWidgetFormFilterInput(),
      'file_path2'  => new sfWidgetFormFilterInput(),
      'file_path3'  => new sfWidgetFormFilterInput(),
      'file_path4'  => new sfWidgetFormFilterInput(),
      'file_path5'  => new sfWidgetFormFilterInput(),
      'file_path6'  => new sfWidgetFormFilterInput(),
      'file_path7'  => new sfWidgetFormFilterInput(),
      'file_path8'  => new sfWidgetFormFilterInput(),
      'file_path9'  => new sfWidgetFormFilterInput(),
      'file_path10' => new sfWidgetFormFilterInput(),
      'file_path11' => new sfWidgetFormFilterInput(),
      'file_path12' => new sfWidgetFormFilterInput(),
      'file_path13' => new sfWidgetFormFilterInput(),
      'file_path14' => new sfWidgetFormFilterInput(),
      'file_path15' => new sfWidgetFormFilterInput(),
      'file_path16' => new sfWidgetFormFilterInput(),
      'file_path17' => new sfWidgetFormFilterInput(),
      'file_path18' => new sfWidgetFormFilterInput(),
      'file_path19' => new sfWidgetFormFilterInput(),
      'file_path20' => new sfWidgetFormFilterInput(),
      'name1'       => new sfWidgetFormFilterInput(),
      'name2'       => new sfWidgetFormFilterInput(),
      'name3'       => new sfWidgetFormFilterInput(),
      'name4'       => new sfWidgetFormFilterInput(),
      'name5'       => new sfWidgetFormFilterInput(),
      'name6'       => new sfWidgetFormFilterInput(),
      'name7'       => new sfWidgetFormFilterInput(),
      'name8'       => new sfWidgetFormFilterInput(),
      'name9'       => new sfWidgetFormFilterInput(),
      'name10'      => new sfWidgetFormFilterInput(),
      'name11'      => new sfWidgetFormFilterInput(),
      'name12'      => new sfWidgetFormFilterInput(),
      'name13'      => new sfWidgetFormFilterInput(),
      'name14'      => new sfWidgetFormFilterInput(),
      'name15'      => new sfWidgetFormFilterInput(),
      'name16'      => new sfWidgetFormFilterInput(),
      'name17'      => new sfWidgetFormFilterInput(),
      'name18'      => new sfWidgetFormFilterInput(),
      'name19'      => new sfWidgetFormFilterInput(),
      'name20'      => new sfWidgetFormFilterInput(),
      'width'       => new sfWidgetFormFilterInput(),
      'height'      => new sfWidgetFormFilterInput(),
      'mat_id'      => new sfWidgetFormPropelChoice(array('model' => 'Material', 'add_empty' => true)),
    ));

    $this->setValidators(array(
      'name'        => new sfValidatorPass(array('required' => false)),
      'file_path1'  => new sfValidatorPass(array('required' => false)),
      'file_path2'  => new sfValidatorPass(array('required' => false)),
      'file_path3'  => new sfValidatorPass(array('required' => false)),
      'file_path4'  => new sfValidatorPass(array('required' => false)),
      'file_path5'  => new sfValidatorPass(array('required' => false)),
      'file_path6'  => new sfValidatorPass(array('required' => false)),
      'file_path7'  => new sfValidatorPass(array('required' => false)),
      'file_path8'  => new sfValidatorPass(array('required' => false)),
      'file_path9'  => new sfValidatorPass(array('required' => false)),
      'file_path10' => new sfValidatorPass(array('required' => false)),
      'file_path11' => new sfValidatorPass(array('required' => false)),
      'file_path12' => new sfValidatorPass(array('required' => false)),
      'file_path13' => new sfValidatorPass(array('required' => false)),
      'file_path14' => new sfValidatorPass(array('required' => false)),
      'file_path15' => new sfValidatorPass(array('required' => false)),
      'file_path16' => new sfValidatorPass(array('required' => false)),
      'file_path17' => new sfValidatorPass(array('required' => false)),
      'file_path18' => new sfValidatorPass(array('required' => false)),
      'file_path19' => new sfValidatorPass(array('required' => false)),
      'file_path20' => new sfValidatorPass(array('required' => false)),
      'name1'       => new sfValidatorPass(array('required' => false)),
      'name2'       => new sfValidatorPass(array('required' => false)),
      'name3'       => new sfValidatorPass(array('required' => false)),
      'name4'       => new sfValidatorPass(array('required' => false)),
      'name5'       => new sfValidatorPass(array('required' => false)),
      'name6'       => new sfValidatorPass(array('required' => false)),
      'name7'       => new sfValidatorPass(array('required' => false)),
      'name8'       => new sfValidatorPass(array('required' => false)),
      'name9'       => new sfValidatorPass(array('required' => false)),
      'name10'      => new sfValidatorPass(array('required' => false)),
      'name11'      => new sfValidatorPass(array('required' => false)),
      'name12'      => new sfValidatorPass(array('required' => false)),
      'name13'      => new sfValidatorPass(array('required' => false)),
      'name14'      => new sfValidatorPass(array('required' => false)),
      'name15'      => new sfValidatorPass(array('required' => false)),
      'name16'      => new sfValidatorPass(array('required' => false)),
      'name17'      => new sfValidatorPass(array('required' => false)),
      'name18'      => new sfValidatorPass(array('required' => false)),
      'name19'      => new sfValidatorPass(array('required' => false)),
      'name20'      => new sfValidatorPass(array('required' => false)),
      'width'       => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'height'      => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'mat_id'      => new sfValidatorPropelChoice(array('required' => false, 'model' => 'Material', 'column' => 'id')),
    ));

    $this->widgetSchema->setNameFormat('photoservice_filters[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Photoservice';
  }

  public function getFields()
  {
    return array(
      'id'          => 'Number',
      'name'        => 'Text',
      'file_path1'  => 'Text',
      'file_path2'  => 'Text',
      'file_path3'  => 'Text',
      'file_path4'  => 'Text',
      'file_path5'  => 'Text',
      'file_path6'  => 'Text',
      'file_path7'  => 'Text',
      'file_path8'  => 'Text',
      'file_path9'  => 'Text',
      'file_path10' => 'Text',
      'file_path11' => 'Text',
      'file_path12' => 'Text',
      'file_path13' => 'Text',
      'file_path14' => 'Text',
      'file_path15' => 'Text',
      'file_path16' => 'Text',
      'file_path17' => 'Text',
      'file_path18' => 'Text',
      'file_path19' => 'Text',
      'file_path20' => 'Text',
      'name1'       => 'Text',
      'name2'       => 'Text',
      'name3'       => 'Text',
      'name4'       => 'Text',
      'name5'       => 'Text',
      'name6'       => 'Text',
      'name7'       => 'Text',
      'name8'       => 'Text',
      'name9'       => 'Text',
      'name10'      => 'Text',
      'name11'      => 'Text',
      'name12'      => 'Text',
      'name13'      => 'Text',
      'name14'      => 'Text',
      'name15'      => 'Text',
      'name16'      => 'Text',
      'name17'      => 'Text',
      'name18'      => 'Text',
      'name19'      => 'Text',
      'name20'      => 'Text',
      'width'       => 'Number',
      'height'      => 'Number',
      'mat_id'      => 'ForeignKey',
    );
  }
}
